package com.cfgj.mapper;

import com.cfgj.entity.CrowdFunding;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CrowdFundingMapper {

    List<CrowdFunding> findCrowfundingbyname(@Param("keyword") String keyword, @Param("page") Integer page, @Param("size") Integer size);

    List<CrowdFunding> findCrowfundingbyStatus(@Param("status") String status, @Param("page") Integer page, @Param("size") Integer size);

    Integer findcount(@Param("status") String status);

    public void passCrowdFund(Integer crowdId);

    CrowdFunding findCrowFuningById(int id);

}
